package com.qf.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 借还
 */
@Data
@AllArgsConstructor@NoArgsConstructor
public class Lend {
    /**
     * 流水号
     */
    private Long serNum;
    /**
     * 图书号
     */
    private Long bookId;
    /**
     * 借阅人id
     */
    private Long readerId;
    /**
     * 借出日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date lendDate;
    /**
     * 归还日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date backDate;

    private BookInfo bookInfo;

    private ClassInfo classInfo;
}
